package com.cennavi.dbs;

import java.util.HashMap;
import java.util.Map;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.client.Connection;
import org.apache.hadoop.hbase.client.ConnectionFactory;
import org.apache.hadoop.hbase.client.Table;

public class HBasePool {


	static Configuration conf = HBaseConfiguration.create();

	public static Connection conn = null;
	Map<String, Table> tabs = new HashMap<String, Table>();

	static {

		conf.set("hbase.zookeeper.quorum",
				ZooKeeperConfigs.props.getProperty("zoo_urls"));

		try {
			conn = ConnectionFactory.createConnection(conf);
		} catch (Exception e) {
			e.printStackTrace();
			System.exit(-1);
		}

	}
}
